#pragma once
#include "SDLComponent.h"
#include "SDLEngine.h"
class SDLSprite : public SDLComponent
{
public:
	SDLSprite();
	virtual ~SDLSprite();

	virtual void Update(){}
	void Draw();
	void SetPosition(const int x, const int y);

protected:
	SDL_Surface* texture;
	// pivot position:
	int x, y;

	SDL_Surface* LoadImage( std::string filename );
	void ApplySurface( int x, int y, SDL_Surface* src, SDL_Surface* dest);
};

